//package com.yc.resgoods.config;
//
//
//import org.springframework.cloud.loadbalancer.core.ReactorServiceInstanceLoadBalancer;
//import org.springframework.cloud.loadbalancer.core.ServiceInstanceListSupplier;
//import org.springframework.cloud.loadbalancer.support.LoadBalancerClientFactory;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.env.Environment;
//
//@Configuration
//public class MyLoadBalancerConfig {
//    @Bean
//    public ReactorServiceInstanceLoadBalancer myLoadBalancerReactorServiceInstanceLoadBalancer(Environment environment, LoadBalancerClientFactory loadBalancerClientFactory){
//        String name = environment.getProperty(LoadBalancerClientFactory.PROPERTY_NAME);
//        //自定义
//        return new MyLoadBalancerRule(loadBalancerClientFactory.getLazyProvider( name,ServiceInstanceListSupplier.class));
//    }
//}
